﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TheAPI
{
    public enum Region
    {
        NA, EUW, EUNE
    }

    public class RiotGamesAPI
    {
        public string APIKey { get; set; }

        public Region Region { get; set; }

        public string RegionString {
            get
            {
                switch(Region)
                {
                    case TheAPI.Region.NA:
                        return "na";
                    case TheAPI.Region.EUW:
                        return "euw";
                    case TheAPI.Region.EUNE:
                        return "eune";
                }
                return "?";
            }
            set { }
        }

        public ChampionModule ChampionModule { get; private set; }
        public SummonerModule SummonerModule { get; private set; }
        public GameModule GameModule { get; private set; }

        public RiotGamesAPI(string key, Region region)
        {
            APIKey = key;
            Region = region;

            ChampionModule = new ChampionModule(this);
            SummonerModule = new SummonerModule(this);
            GameModule = new GameModule(this);
        }
    }
}
